﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Weblications.Sango.Protocol.general;
using Pixysoft.Weblications.Sango.Environment;
using Pixysoft.Framework.Reflection;

namespace Pixysoft.Weblications.Sango.Protocol
{
    class GeneralFacade
    {
        public static List<general_famesetting> ToFames()
        {
            List<general_famesetting> list = new List<general_famesetting>();

            foreach (Entities.Sys_Famesetting orm in SysFameSettingHelper.searchAll())
            {
                general_famesetting body = ReflectionManager.CreatePojo<general_famesetting>();
                list.Add(body);

                body.fametypecode = orm.Fametitletypecode;
                body.name = orm.Fametitlename;
                body.level = orm.Requiredlevel;
                body.famevalue = orm.Requiredfamevalue;
                body.maxofficer = orm.Maxofficercount;
                body.description = orm.Description;
            }

            return list;
        }
    }
}
